package com.ruoyi.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.business.domain.TRegisterLeave;
import com.ruoyi.business.vo.TRegisterLeaveStatVo;
import com.ruoyi.business.vo.TRegisterLeaveVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 请假记录Mapper接口
 *
 * @author Tellsea
 * @date 2024-02-06
 */
public interface TRegisterLeaveMapper extends BaseMapper<TRegisterLeave> {

    Page<TRegisterLeaveVo> queryList(Page<?> page, @Param("entity") TRegisterLeaveVo entity);

    List<TRegisterLeaveVo> queryList(@Param("entity") TRegisterLeaveVo entity);

    TRegisterLeaveVo queryById(@Param("id") Long id);

    List<TRegisterLeaveStatVo> getRegisterLeaveStat(@Param("registerIdList") List<Long> registerIdList);

}
